package com.design.behavior.template.cainiao;

/**
 * @ProjectName: design
 * @Package: com.design.behavior.template.cainiao
 * @ClassName: Game
 * @Author: shenaiguo
 * @Description:
 * @Date: 2020/9/22 0022 23:21
 */
// 步骤 1
public abstract class Game {
    abstract void initialize();
    abstract void startPlay();
    abstract void endPlay();

    //模板
    public final void play(){

        //初始化游戏
        initialize();

        //开始游戏
        startPlay();

        //结束游戏
        endPlay();
    }
}
